package fun.codedesign.yinxue.code.php2java.model;

import java.io.File;
import java.util.Objects;

public class PhpFile {

    private File file;

    public PhpFile(File file) {
        this.file = file;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PhpFile phpFile = (PhpFile) o;
        return Objects.equals(file.getAbsolutePath(), phpFile.file.getAbsolutePath());
    }

    @Override
    public int hashCode() {
        return file != null ? file.getAbsolutePath().hashCode() : 0;
    }

    public String getText() {
        return null;
    }
}
